package com.mt.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Wang
 * @Description 角色实体类
 * @since 2020-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mt_role")
@ApiModel(value="Role对象", description="")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    private String roleName;

    @ApiModelProperty(value = "启用状态: 启用/冻结 1/2")
    private Integer roleStatus;

    @ApiModelProperty(value = "1. sys_admin  2.admin 3.seller 4 customer")
    private Integer roleType;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}
